package xyz.comfyz.web.commons.security.model;


import xyz.comfyz.web.commons.security.cache.Cacheable;

/**
 * @author :    comfy
 * @date :      2018-05-12 16:04:49
 * @since :     1.8
 * <p>
 */
public class Token implements Cacheable {

    private final long createTime;
    private final long expiry;

    public Token(long createTime, long expiry) {
        this.createTime = createTime;
        this.expiry = expiry;
    }

    @Override
    public long getExpires() {
        return expiry;
    }

    @Override
    public long getCreateTime() {
        return createTime;
    }

}
